import { post } from './http'

const list = {
  login: '/userService/Account/Login', // 用户登录
  logout: '/userService/Account/Logout', // 用户登出
  GenToken: '/tokenService/Token/GenToken', // 获取Token
  bannerList: '/Banner/BannerManage/SelectBannerByCondition' // banner管理
}

let api = {}

for (let k in list) {
  api[k] = params => post(list[k], params)
}

export default api
